package com.example.common.codec;

import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/**
 * @Author: 582895699@qq.com
 * @Desctription: TODO
 * @Date: Created in 2021/11/28 22:04
 */

@Getter
@Setter
public class NettyMessage {

    private String type;

    private Map<String, String> data;

    public NettyMessage() {
    }

    public NettyMessage(String type, Map<String, String> data) {
        this.type = type;
        this.data = data;
    }

    @Override
    public String toString() {
        return "NettyMessage{" +
                "type='" + type + '\'' +
                ", data=" + data +
                '}';
    }
}
